﻿using System;
using System.Web;
using System.Collections.Generic;
using BLToolkit.Mapping;
using BLToolkit.Data;
using BLToolkit.Reflection;

/// <summary>Bus_id</summary>
public class Bus
{
	[Nullable]
	[MapField("Bus_id")]
	public Int64 Id { get; set; }

	[Nullable]
	[MapField("Bus_name")]
	public string Name { get; set; }

	[Nullable]
	[MapField("Bus_PlaceCount")]
	public Int32 PlaceCount { get; set; }


	public bool Merge()
	{
		try
		{
			//SetLoggingInfo();
			this.Id = DBEntity<Bus>.Merge(this);
			return true;
		}
		catch { return false; }
	}
}
